package ooday01;

public class ConsDemo {
    public static void main(String[] args) {
        //调用无参构造方法
        Student stu1=new Student();
        stu1.name="张三";
        stu1.age=19;
        stu1.className="jsd2407";
        stu1.stuID="2024-07-01";
        stu1.sayHi();
        //调用有参构造方法
        Student stu2=new Student("李四",20,"jsd2407","2024-07-02");
        stu2.sayHi();
        Student stu3=new Student("王五",20,"jsd2407","2024-07-03");
        stu3.sayHi();
    }
}
